#include <stdio.h>
void* my_memcpy(void* dest, const void* src, size_t num)
{
	void* ret = dest;
	while (num--)
	{
		*(char*)dest = *(char*)src;
		dest = (char*)dest + 1;
		src = (char*)src + 1;
	}
	return ret;
}
int main()
{
	int arr1[] = { 1,2,3,4,5, };
	int arr2[10] = { 0 };
	void* ret = my_memcpy(arr2, arr1, 20);;
	for (int i = 0; i < 5; i++)
	{
		printf("%d  ", arr2[i]);
	}
}